-- GENERATED SPELL FOR [Slad'ran Viper] --


function spell0_29680(pUnit, Event) --@Venomous Bite,n/a--
pUnit:FullCastSpellOnTarget(54987,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29680', 8000, 1)
end

function spell1_29680(pUnit, Event) --@Venomous Bite,n/a--
pUnit:FullCastSpellOnTarget(58996,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29680', 8000, 1)
end

function Sorts_29680(pUnit, Event)
local choix_sorts_29680 = math.random(0, 1)
if choix_sorts_29680 == 0 then
pUnit:RegisterEvent('spell0_29680', 1, 1)
end
if choix_sorts_29680 == 1 then
pUnit:RegisterEvent('spell1_29680', 1, 1)
end
end

function mob29680_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29680', math.random(1500, 3000), 1)
end

function mob29680_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29680_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29680_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29680, 1, 'mob29680_Action')
RegisterUnitEvent(29680, 2, 'mob29680_Leave')
RegisterUnitEvent(29680, 3, 'mob29680_Kill')
RegisterUnitEvent(29680, 4, 'mob29680_Die')
